<template>
  <div>
    <van-nav-bar
      title="收藏列表"
      left-arrow
      @click-left="$router.push('/user')"
    />
    <van-list>
      <MyColRen v-for="(item, index) in list" :key="index" :item="item" />
    </van-list>
  </div>
</template>

<script>
import MyColRen from '@/components/MyColRen.vue'
import { collect } from '@/api/article'
export default {
  components: {
    MyColRen
  },
  async created() {
    const { body } = await collect()
    this.list = body
    // console.log(body)
  },
  data() {
    return {
      list: []
    }
  },
  methods: {}
}
</script>

<style></style>
